Optimal. Leaf size=74 \[ -\frac{2^{n+\frac{1}{2}} \cos (c+d x) (\sin (c+d x)+1)^{-n-\frac{1}{2}} (a \sin (c+d x)+a)^n \, _2F_1\left (\frac{1}{2},\frac{1}{2}-n;\frac{3}{2};\frac{1}{2} (1-\sin (c+d x))\right )}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0382396, antiderivative size = 74, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.167, Rules used = {2652, 2651} \[ -\frac{2^{n+\frac{1}{2}} \cos (c+d x) (\sin (c+d x)+1)^{-n-\frac{1}{2}} (a \sin (c+d x)+a)^n \, _2F_1\left (\frac{1}{2},\frac{1}{2}-n;\frac{3}{2};\frac{1}{2} (1-\sin (c+d x))\right )}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2652
Rule 2651
Rubi steps
\begin{align*} \int (a+a \sin (c+d x))^n \, dx &=\left ((1+\sin (c+d x))^{-n} (a+a \sin (c+d x))^n\right ) \int (1+\sin (c+d x))^n \, dx\\ &=-\frac{2^{\frac{1}{2}+n} \cos (c+d x) \, _2F_1\left (\frac{1}{2},\frac{1}{2}-n;\frac{3}{2};\frac{1}{2} (1-\sin (c+d x))\right ) (1+\sin (c+d x))^{-\frac{1}{2}-n} (a+a \sin (c+d x))^n}{d}\\ \end{align*}
Mathematica [A] time = 0.187684, size = 90, normalized size = 1.22 \[ \frac{\sqrt{2} \cos (c+d x) (a (\sin (c+d x)+1))^n \, _2F_1\left (\frac{1}{2},n+\frac{1}{2};n+\frac{3}{2};\frac{1}{4} \cos ^2(c+d x) \csc ^2\left (\frac{1}{4} (2 c+2 d x-\pi )\right )\right )}{(2 d n+d) \sqrt{1-\sin (c+d x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.31, size = 0, normalized size = 0. \begin{align*} \int \left ( a+a\sin \left ( dx+c \right ) \right ) ^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left ({\left (a \sin \left (d x + c\right ) + a\right )}^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a \sin{\left (c + d x \right )} + a\right )^{n}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (a \sin \left (d x + c\right ) + a\right )}^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]